package main.enumTest;

import java.util.ArrayList;
import java.util.List;

public class Test1 {
    public static void main(String[] args) {
        Season s = Season.SPRING;
        List list = new ArrayList();
        s.showInfo();
    }
}
enum Season{
    SPRING("春天"),//相当于调用Season;
    SUMMER("秋天"),
    AUTUMN("秋天"),
    WINTER("冬天");
    private final String name;
    private Season(String name){
        this.name = name;
    }
    @Deprecated
    public  void showInfo(){
        System.out.println(this.name);
    }
}
